//
//  NSDate+Extensions.h
//  CDatePicker
//
//  Created by Mac on 2023/12/8.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSDate (Extensions)

- (NSInteger)currentYear;
- (NSInteger)currentMonth;
- (NSInteger)currentDay;

+ (NSInteger)numberOfMonthsInYear:(NSInteger)year;
+ (NSInteger)numberOfDaysInMonth:(NSInteger)month year:(NSInteger)year;
+ (NSInteger)dayOfWeekForYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;


// 添加小时
+ (NSDate *)addHours:(NSInteger)hours toDate:(NSDate *)originalDate;


@end

NS_ASSUME_NONNULL_END
